package Day_05;

public class StandardTwoDemo {
    public static void main(String[] args) {
        // Array

        // Claim
        int[] example_1 = new int[/*Length*/]{/*Number*/};
        double[] example_2 = new double[/*Length*/]{/*Number*/};

        // Static Initialization
        int[] exa_1 = new int[]{1,2,3};
        // Dynamic Initialization
        example_1 = new int[]{1,2,3,4,5,6};
        int[] example_3 = new int[3];

        // Use arrays
        System.out.println(exa_1); // array's address number in memory.
        System.out.println(exa_1[0]); // value in array_index

        // for in array.length (array.for i)
        for (int i = 0; i < exa_1.length; i++) {
            System.out.println(exa_1[i]);
        }

        // Copy of Array
        // 1 System.arraycopy()
        // 2 Arrays.copyOf() import java.util.Arrays
           // · Extend array length.
    }
}
